package com.funo.business.entities;
// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;


/**
 * Template entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="T_TEMPLATE"
    ,schema="UNIBASE"
)
@DynamicInsert
@DynamicUpdate
public class Template  implements java.io.Serializable {


    // Fields    

     private String templateItemId;
     private String tempItemName;
     private String templateId;
     private int isValid;
     private Date insertDt;


    // Constructors

    /** default constructor */
    public Template() {
    }

	/** minimal constructor */
    public Template(int isValid) {
        this.isValid = isValid;
    }
    
    /** full constructor */
    public Template(String tempItemName, String templateId, int isValid, Date insertDt) {
        this.tempItemName = tempItemName;
        this.templateId = templateId;
        this.isValid = isValid;
        this.insertDt = insertDt;
    }

   
    // Property accessors
//    @GenericGenerator(name="generator", strategy="uuid.hex") @GeneratedValue(generator="generator")
    @Id
    @Column(name="TEMPLATE_ITEM_ID", unique=true, nullable=false, length=40)

    public String getTemplateItemId() {
        return this.templateItemId;
    }
    
    public void setTemplateItemId(String templateItemId) {
        this.templateItemId = templateItemId;
    }
    
    @Column(name="TEMP_ITEM_NAME", length=40)

    public String getTempItemName() {
        return this.tempItemName;
    }
    
    public void setTempItemName(String tempItemName) {
        this.tempItemName = tempItemName;
    }
    
    @Column(name="TEMPLATE_ID", length=40)

    public String getTemplateId() {
        return this.templateId;
    }
    
    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }
    
    @Column(name="IS_VALID", nullable=false, precision=1, scale=0,insertable=false)

    public int getIsValid() {
        return this.isValid;
    }
    
    public void setIsValid(int isValid) {
        this.isValid = isValid;
    }
   
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="INSERT_DT", length=7,insertable=false,updatable=false)

    public Date getInsertDt() {
        return this.insertDt;
    }
    
    public void setInsertDt(Date insertDt) {
        this.insertDt = insertDt;
    }

   








}